package net.csdn.business.notify.handler.flowcontrol;


import net.csdn.business.notify.common.pipeline.domain.TaskInfo;

/**
 * @ClassName FlowControlService
 * @Description 流量控制服务
 * @Author zhangyl
 * @Date 2023/11/30 17:31
 */
public interface FlowControlService {


    /**
     * 根据渠道进行流量控制
     *
     * @param taskInfo
     * @param flowControlParam
     * @return 耗费的时间
     */
    Double flowControl(TaskInfo taskInfo, FlowControlParam flowControlParam);

}
